import {
  MockData,
  MockWordCloud,
  MockInstitutions,
  MockCountry,
  MockAuthor,
  MockKeywordTimespan
} from './types';

export const mockKeywordTrends: MockData = {
  '大农业': {
    years: ['2019', '2020', '2021', '2022', '2023'],
    keywords: {
      '智能农业': [20, 35, 45, 60, 80],
      '生物技术': [30, 40, 50, 55, 70],
      '农业物联网': [15, 25, 40, 50, 65],
      '精准农业': [25, 30, 45, 55, 75],
      '农业机器人': [10, 20, 35, 45, 60]
    }
  }
};

export const mockWordCloudData: MockWordCloud = {
  '大农业': [
    { name: '智能农业', value: 80, connections: ['生物技术', '农业物联网'] },
    { name: '生物技术', value: 70, connections: ['智能农业', '精准农业'] },
    { name: '农业物联网', value: 65, connections: ['智能农业', '农业机器人'] },
    { name: '精准农业', value: 75, connections: ['生物技术', '农业机器人'] },
    { name: '农业机器人', value: 60, connections: ['农业物联网', '精准农业'] }
  ]
};

export const mockInstitutions: MockInstitutions = {
  '大农业': [
    { name: '中国农业科学院', patents: 150 },
    { name: '吉林农业大学', patents: 120 },
    { name: '中国科学院', patents: 100 },
    { name: '北京大学', patents: 80 },
    { name: '清华大学', patents: 75 }
  ]
};

export const mockCountryData: MockCountry = {
  '大农业': [
    { country: '中国', patents: 500 },
    { country: '美国', patents: 300 },
    { country: '日本', patents: 200 },
    { country: '德国', patents: 150 },
    { country: '韩国', patents: 100 }
  ]
};

export const mockAuthorData: MockAuthor = {
  '大农业': [
    { name: '张三', patents: 25 },
    { name: '李四', patents: 20 },
    { name: '王五', patents: 18 },
    { name: '赵六', patents: 15 },
    { name: '孙七', patents: 12 }
  ]
};

export const mockKeywordTimespan: MockKeywordTimespan = {
  '大农业': [
    { keyword: '智能农业', startYear: 2019, endYear: 2023, frequency: 240 },
    { keyword: '生物技术', startYear: 2019, endYear: 2023, frequency: 245 },
    { keyword: '农业物联网', startYear: 2020, endYear: 2023, frequency: 195 },
    { keyword: '精准农业', startYear: 2019, endYear: 2023, frequency: 230 },
    { keyword: '农业机器人', startYear: 2021, endYear: 2023, frequency: 170 }
  ],
  '新一代信息技术': [
    { keyword: '人工智能', startYear: 2019, endYear: 2023, frequency: 85 },
    { keyword: '大数据', startYear: 2020, endYear: 2023, frequency: 75 },
    { keyword: '云计算', startYear: 2019, endYear: 2022, frequency: 65 },
    { keyword: '区块链', startYear: 2021, endYear: 2023, frequency: 45 },
    { keyword: '物联网', startYear: 2019, endYear: 2023, frequency: 55 }
  ],
  '生物医药': [
    { keyword: '基因编辑', startYear: 2019, endYear: 2023, frequency: 90 },
    { keyword: '细胞治疗', startYear: 2020, endYear: 2023, frequency: 80 },
    { keyword: '免疫治疗', startYear: 2019, endYear: 2022, frequency: 70 },
    { keyword: '靶向药物', startYear: 2021, endYear: 2023, frequency: 60 },
    { keyword: '生物制药', startYear: 2019, endYear: 2023, frequency: 50 }
  ],
  '新能源': [
    { keyword: '太阳能', startYear: 2019, endYear: 2023, frequency: 95 },
    { keyword: '风能', startYear: 2020, endYear: 2023, frequency: 85 },
    { keyword: '氢能', startYear: 2019, endYear: 2022, frequency: 75 },
    { keyword: '储能', startYear: 2021, endYear: 2023, frequency: 65 },
    { keyword: '智能电网', startYear: 2019, endYear: 2023, frequency: 55 }
  ],
  '新材料': [
    { keyword: '石墨烯', startYear: 2019, endYear: 2023, frequency: 88 },
    { keyword: '碳纤维', startYear: 2020, endYear: 2023, frequency: 78 },
    { keyword: '纳米材料', startYear: 2019, endYear: 2022, frequency: 68 },
    { keyword: '超导材料', startYear: 2021, endYear: 2023, frequency: 58 },
    { keyword: '智能材料', startYear: 2019, endYear: 2023, frequency: 48 }
  ]
};
